Package-level declarations

A Kotlin/Java library for accessing the Akismet service.

Types

Link copied to clipboard
open class Akismet(apiKey: String)

Provides access to the Akismet API.

Link copied to clipboard
@Serializable
open class AkismetComment(val userIp: String, val userAgent: String)

A comment to send to Akismet.

Link copied to clipboard
class CommentConfig @JvmOverloads constructor(var userIp: String, var userAgent: String, var referrer: String = "", var permalink: String = "", var type: CommentType = CommentType.NONE, var author: String = "", var authorEmail: String = "", var authorUrl: String = "", var content: String = "", var dateGmt: String = "", var postModifiedGmt: String = "", var blogLang: String = "", var blogCharset: String = "", var userRole: String = "", var isTest: Boolean = false, var recheckReason: String = "", var serverEnv: Map<String, String> = emptyMap())

Provides a comment configuration.

Link copied to clipboard
@Serializable
data class CommentType(var value: String)

Defines the comment types.